package cosplay.DAO;

import java.util.List;

import cosplay.Beans.Photos;

public interface PhotoDAO {
	public int add(Photos photo);
	public boolean delete (int pid);
	public boolean edit (Photos photo, int id);
	public Photos get(int pid);
	public List<Integer> getAllSuggested();
	public List<Integer> getByAlbum(int aid);
	public List<Integer> getByResult(int rid);
	public boolean join(int pid, int rid);
	public boolean quit(int pid, int rid);
	public boolean move(int pid, int naid);
	public boolean suggest(int pid);
	public boolean unsuggest(int pid);
	public byte[] getImage(int pid);
	public byte[] getPreview(int pid);
	public boolean setPreview(int pid);
}
